package com.sq.partner.manager.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.NocarPlan;
import com.sq.partner.manager.util.Page;

public interface ITradNoCarProdPlanDao extends BaseDao {
	
	NocarPlan getMaxPlanCodeFromDB(String nocarPlan) throws SQLException;

	boolean addNocarPlan(NocarPlan nocarPlan) throws Exception;

	Page<NocarPlan> queryNocarPlanPage(Page<NocarPlan> page) throws SQLException;

	NocarPlan queryTradNocarPlanInfo(NocarPlan nocarPlan) throws SQLException;
	
	Map<String,Object> queryMapTradNocarPlanInfo(NocarPlan nocarPlan) throws SQLException;

	boolean updateTradNocarPlanInfo(NocarPlan nocarPlan) throws Exception;

	boolean delTradNocarPlan(String planCode) throws Exception;
	
	List<NocarPlan> queryTradNocarPlanByProdCode(String prodCode) throws SQLException;
	//删除合作伙伴时校验是否关联方案
	boolean isHasExistPlan(String partnerNo) throws Exception;
	
	Page<NocarPlan> queryPageForInsurePlanList(Page<NocarPlan> page,String channelCode) throws Exception;

	 List<Map<String, Object>> searchNoCarPlansByplanCode(Map<String, Object> maps)  throws Exception;

}
